# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=py-mopidy-beets
pkgver=2.0.0
pkgrel=0
pkgdesc="Mopidy extension for playing music from a Beets collection"
url="http://www.mopidy.com/"
arch="noarch"
license="Apache"
depends="python2 mopidy py-setuptools py-pykka py-requests"
depends_dev=""
makedepends="python2-dev"
install=""
subpackages=""
source="https://files.pythonhosted.org/packages/source/M/Mopidy-Beets/Mopidy-Beets-$pkgver.tar.gz"

_builddir="$srcdir"/Mopidy-Beets-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	python2 setup.py build || return 1
}

package() {
	cd "$_builddir"
	python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
}

md5sums="894b79054abad1406b3e6ce626a8e69d  Mopidy-Beets-2.0.0.tar.gz"
sha256sums="1628961a10f7c805babe048e3f6dd85062699c9fe7d18ff3ed0857b4865a3f1e  Mopidy-Beets-2.0.0.tar.gz"
sha512sums="69a8bb7590393367a1b6014b6353b5e32dabb4a3cf9e455dc314b72c9488f1e13bcd8911ce5bee8fbc09f085eeba87ee2c2bab1404b6269934c8191a15971ac0  Mopidy-Beets-2.0.0.tar.gz"
